<%@page import="login.MemberVo"%>
<%@page import="login.MemberMyBa"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>로그인 결과창</title>
<style>
#login_back{
	width:500px;
	height:200px;
	margin:auto;
	text-align:center;
	margin-top:255px;
	/* background-color: #24598f; */
	border:1px solid #222222;
	
}
#result_text{
	font-size:13px;
	/* color:#ffffff; */
	font-weight:bold;
	margin-top:50px;
}
#resultBtn{
	width:100px;
	height:50px;
	color:#ffffff;
	font-weight:bold;
	background-color: #88b3e0;
	border: none;
	padding: 3px 5px;
	cursor: pointer;
}

</style>

<script>
function goIndex(){
	location.href="../index.jsp";
}
</script>

</head>
<body>
<jsp:useBean id="bean" class="login.MemberVo"></jsp:useBean>
<jsp:setProperty property="*" name="bean"/>

<%
//out.print(bean.getSA_no());
//out.print(bean.getSA_pwd());

MemberMyBa member = new MemberMyBa();
member.setMemberVo(bean);
MemberVo vo = member.login();
//out.print(vo);

%>

<%if(vo != null){ 
	session.setAttribute("Mid", bean.getSA_no());
	session.setAttribute("SA_nm", vo.getSA_nm());
	session.setAttribute("SA_no", vo.getSA_no());
%>
<script>goIndex();</script>
<%}else{ %>
<div id='login_back'>
	<div id="result_text">아이디와 비밀번호를 다시 확인해주세요.</div>
	<div style="height:10px;"></div>
	<div id="result_btn"><input type="button" value="확인" onclick="location.href='login.jsp'"></div>
</div>
<%} %>

</body>
</html>

